import request from '@/common/request'

export function listWebsite(data) {
    return request({
        url: '/cms/website/index',
        method: 'get',
        params: data
    })
}

export function createWebsite(data) {
    return request({
        url: '/cms/website/create',
        method: 'post',
        data: data
    })
}

export function updateWebsite(data) {
    return request({
        url: '/cms/website/update?id=' + data.id,
        method: 'post',
        data: data
    })
}

export function deleteWebsite(data) {
    return request({
        url: '/cms/website/delete',
        method: 'post',
        data: data
    })
}
